using MediatR;
using RBAC.Domain.Dto.Output;
using RBAC.ErrorCode;

namespace RBAC.Read.Api.Application.Command.ERP.PurchasingManagement.RawMaterialSuppliers
{
    /// <summary>
    /// 供应商列表查询命令（分页+条件）
    /// </summary>
    public class GetRawMaterialSuppliersListCommand : IRequest<APIPaging<GetRawMaterialSupplierListDto>>
    {
        /// <summary>
        /// 页码，从1开始
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 供应商名称（模糊）
        /// </summary>
        public string? Supplier_Name { get; set; }

        /// <summary>
        /// 业务联系人（模糊）
        /// </summary>
        public string? BusinessContact_Name { get; set; }

        /// <summary>
        /// 供应料品（精确匹配）
        /// </summary>
        public string? Supply_Products { get; set; }
    }
}
